import agent, environ, vis
from config import Config
from vis import Visualizer

def main():
    env=environ.Environment(Config.MAPDIMENSIONS, Config.COMMUNICATION_RANGE, Config.COMMUNICATION_RELIABILITY, Config.NUMBER_OF_MINES)
    viz=Visualizer(env, Config.ZOOM_LEVEL)

    for i in xrange(0,Config.NUMBER_OF_AGENTS):
        env.add_agent(agent.Agent(i, env))
        
    env.check_locations()

    while True:
        viz.redraw()
        env.next_turn()

main()
